{"version":3,"sources":["user_consent.js"],"names":["UserConsentControl","params","this","caller","formNode","controlNode","inputNode","config","prototype","BX","UserConsent","msg","title","btnAccept","btnReject","loading","errTextLoad","events","save","refused","accepted","current","autoSave","isFormSubmitted","isConsentSaved","attributeControl","load","context","item","find","bind","loadAll","limit","forEach","loadFromForms","formNodes","document","getElementsByTagName","convert","nodeListToArray","controlNodes","querySelectorAll","map","createItem","filter","submitEventName","addCustomEvent","onSubmit","onClick","querySelector","JSON","parse","getAttribute","parameters","tagName","findParent","e","url","requestForItem","preventDefault","check","checked","saveConsent","setCurrent","requestConsent","id","sec","replace","onAccepted","onRefused","actionRequestUrl","actionUrl","onCustomEvent","submit","initPopup","popup","isInit","nodes","container","shadow","head","loader","content","textarea","buttonAccept","buttonReject","onAccept","hide","onReject","init","tmplNode","createElement","innerHTML","children","body","insertBefore","link","linkA","textContent","message","setTitle","text","setContent","style","display","setUrl","href","show","isContentVisible","cache","list","stringifyKey","key","type","isString","stringify","set","data","get","push","getData","filtered","length","has","sendData","cacheHash","setTextToPopup","ajax","runAction","then","response","html","catch","alert","titleBar","textTitlePos","indexOf","textTitleDotPos","substr","trim","split","Function","call","String","callback","window","location","originId","inputs","input","name","value","originatorId","apply","sendActionRequest","action","callbackSuccess","callbackFailure","sessid","bitrix_sessid","method","timeout","dataType","processData","onsuccess","proxy","error","onfailure","ready"],"mappings":"CAAC,WAEA,SAASA,EAAoBC,GAE5BC,KAAKC,OAASF,EAAOE,OACrBD,KAAKE,SAAWH,EAAOG,SACvBF,KAAKG,YAAcJ,EAAOI,YAC1BH,KAAKI,UAAYL,EAAOK,UACxBJ,KAAKK,OAASN,EAAOM,OAEtBP,EAAmBQ,UAAY,GAI/BC,GAAGC,YAAc,CAChBC,IAAK,CACJC,MAAS,kCACTC,UAAa,uCACbC,UAAa,uCACbC,QAAW,oCACXC,YAAe,2CAEhBC,OAAQ,CACPC,KAAQ,iCACRC,QAAW,oCACXC,SAAY,sCAEbC,QAAS,KACTC,SAAU,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